﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using PMServiceDesk.DataType;

namespace PMServiceDesk.Web.AppCode
{
    public static class Sesion
    {
        public static UsuarioType Usuario
        {
            get
            {
                if (HttpContext.Current.Session["UsuarioPMServiceDesk"] == null) return null;

                return (UsuarioType)HttpContext.Current.Session["UsuarioPMServiceDesk"];
            }
            set
            {
                HttpContext.Current.Session["UsuarioPMServiceDesk"] = value;
            }
        }
    }
}